const prodPlugins=[]
// 只有在生产模式下才引入移除控制台输出语句
if(process.env.NODE_ENV==='production'){
  prodPlugins.push('transform-remove-console')
}
module.exports = {
  presets: [
    ['@vue/cli-plugin-babel/preset',{
      useBuiltIns: false,
    }]
  ],
  plugins:[
    ...prodPlugins,
    '@babel/plugin-syntax-dynamic-import',
    // vuetify按照需要引入。
    ["transform-imports", {
      "vuetify": {
        "transform": "vuetify/es5/components/${member}",
        "preventFullImport": true
      }
    }],
  ]
}
